part of '../index.dart';

class RoomRecommendModel {
  String? roomNo;
  String? roomCode;
  String? roomName;
  String? roomIcon;
  int? roomCategoryId;
  String? roomCategoryName;
  String? roomCategoryColor;
  String? categoryTypeIcon;
  int? scoreWeight;
  String? roomHonorTag;
  bool? isActivate;
  bool? isLock;
  int? hostUserId;
  int? pkType;
  int? roomStatus;
  String? bgImg;
  String? rightTopIcon;
  int? realPeople;
  String? playImg;
  String? secondCategoryImg;
  String? secondPlayImg;
  int? maleCount;
  int? ladyCount;
  String? freeShow;
  String? hotRoomIcon;
  int? roomTemplateId;
  String? country;
  String? countryUrl;

  RoomRecommendModel({
    this.roomNo,
    this.roomCode,
    this.roomName,
    this.roomIcon,
    this.roomCategoryId,
    this.roomCategoryName,
    this.roomCategoryColor,
    this.categoryTypeIcon,
    this.scoreWeight,
    this.roomHonorTag,
    this.isActivate,
    this.isLock,
    this.hostUserId,
    this.pkType,
    this.roomStatus,
    this.bgImg,
    this.rightTopIcon,
    this.realPeople,
    this.playImg,
    this.secondCategoryImg,
    this.secondPlayImg,
    this.maleCount,
    this.ladyCount,
    this.freeShow,
    this.hotRoomIcon,
    this.roomTemplateId,
    this.country,
    this.countryUrl,
  });

  RoomRecommendModel.fromJson(Map<String, dynamic> json) {
    roomNo = json['roomNo'];
    roomCode = json['roomCode'];
    roomName = json['roomName'];
    roomIcon = json['roomIcon'];
    roomCategoryId = int.tryParse('${json['roomCategoryId']}');
    roomCategoryName = json['roomCategoryName'];
    roomCategoryColor = json['roomCategoryColor'];
    categoryTypeIcon = json['categoryTypeIcon'];
    scoreWeight = int.tryParse('${json['scoreWeight']}');
    roomHonorTag = json['roomHonorTag'];
    isActivate = json['isActivate'];
    isLock = json['isLock'];
    hostUserId = int.tryParse('${json['hostUserId']}');
    pkType = int.tryParse('${json['pkType']}');
    roomStatus = int.tryParse('${json['roomStatus']}');
    bgImg = json['bgImg'];
    rightTopIcon = json['rightTopIcon'];
    realPeople = int.tryParse('${json['realPeople']}');
    playImg = json['playImg'];
    secondCategoryImg = json['secondCategoryImg'];
    secondPlayImg = json['secondPlayImg'];
    maleCount = int.tryParse('${json['maleCount']}');
    ladyCount = int.tryParse('${json['ladyCount']}');
    freeShow = json['freeShow'];
    hotRoomIcon = json['hotRoomIcon'];
    roomTemplateId = int.tryParse('${json['roomTemplateId']}');
    country = json['country'];
    countryUrl = json['countryUrl'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['roomNo'] = roomNo;
    data['roomCode'] = roomCode;
    data['roomName'] = roomName;
    data['roomIcon'] = roomIcon;
    data['roomCategoryId'] = roomCategoryId;
    data['roomCategoryName'] = roomCategoryName;
    data['roomCategoryColor'] = roomCategoryColor;
    data['categoryTypeIcon'] = categoryTypeIcon;
    data['scoreWeight'] = scoreWeight;
    data['roomHonorTag'] = roomHonorTag;
    data['isActivate'] = isActivate;
    data['isLock'] = isLock;
    data['hostUserId'] = hostUserId;
    data['pkType'] = pkType;
    data['roomStatus'] = roomStatus;
    data['bgImg'] = bgImg;
    data['rightTopIcon'] = rightTopIcon;
    data['realPeople'] = realPeople;
    data['playImg'] = playImg;
    data['secondCategoryImg'] = secondCategoryImg;
    data['secondPlayImg'] = secondPlayImg;
    data['maleCount'] = maleCount;
    data['ladyCount'] = ladyCount;
    data['freeShow'] = freeShow;
    data['hotRoomIcon'] = hotRoomIcon;
    data['roomTemplateId'] = roomTemplateId;
    data['country'] = country;
    data['countryUrl'] = countryUrl;
    return data;
  }
}